package com.xxxx.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @Author Lionel
 * @Date 2021/3/14 0:37
 * Created by IntelliJ IDEA 2020.1.
 * Project: house
 * Description：资源映射配置类
 */
@Configuration
public class MvcConfig implements WebMvcConfigurer {
    @Override

    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/upload/**").addResourceLocations("file:D:/upload/");
    }
}
